<layout name='PublishedRecipe' />

    <div class="center">
    	<div class="dq_weizhi">Current position: Home >> recipes >> dish</div>
    	<div class="left">
        	<div class="all_rep">
            	<div class="TabTitle">
                    <ul id="myTab1">
                        <li class="active"><a href="__APP__/Recipe/index">All recipes</a></li>
                        <li class="normal"><a href="__APP__/Recipe/popular">Most popular</a></li>
                        <li class="normal"><a href="__APP__/Recipe/add">Add a recipe</a></li>
                    </ul>
                </div>
                <div style="clear:both;"></div>

                <div class="all_tupian">
                    <div id="myTab1_Content0"> 
                        <p class="categ">Category</p>
                        <div class="th"> 
                            <ul>
                                <volist name="recipecategoryinfo" id="vo">
                                    <li>
                                        <a href="__APP__/Recipe/category/cid/<{$vo.id}>/type/<{$vo.name}>">
                                            <img src="__PUBLIC__/Content/RecipeCategory/<{$vo.image}>" />
                                        </a>
                                        <p><a href="__APP__/Recipe/category/cid/<{$vo.id}>/type/<{$vo.name}>"><{$vo.name}></a></p>
                                    </li>
                                </volist>
                            </ul>
                        </div>
                        <div style="clear:both;"></div>
                        <div class="cook_link">
                            <div class="Cook_method">
                                <h2 class="lv_htwo">Cook method</h2>
                                <ul class="Cook_ul">
                                    <empty name="setcookmethodinfo">
                                            <li><a href="javascript:;">无</a></li>
                                        <else/>
                                        <volist name="setcookmethodinfo" id="vo">
                                            <li><a href="__APP__/Recipe/mincategory/ctype/cookmethod/cid/<{$vo.id}>/type/<{$vo.name}>"><{$vo.name}></a></li>
                                        </volist>
                                    </empty>

                                </ul>
                            </div>
                            <div class="Cook_method">
                                <h2 class="lv_htwo">Course</h2>
                                <ul class="Cook_ul">
                                    <empty name="setcourseinfo">
                                        <li><a href="javascript:;">无</a></li>
                                        <else/>
                                        <volist name="setcourseinfo" id="vo">
                                            <li><a href="__APP__/Recipe/mincategory/ctype/course/cid/<{$vo.id}>/type/<{$vo.name}>"><{$vo.name}></a></li>
                                        </volist>
                                    </empty>
                                </ul>
                            </div>
                            <div class="Cook_method">
                                <h2 class="lv_htwo">Dietary needs</h2>
                                <ul class="Cook_ul">
                                    <empty name="setdietaryneedsinfo">
                                        <li><a href="javascript:;">无</a></li>
                                        <else/>
                                        <volist name="setdietaryneedsinfo" id="vo">
                                            <li><a href="__APP__/Recipe/mincategory/ctype/dietaryneeds/cid/<{$vo.id}>/type/<{$vo.name}>"><{$vo.name}></a></li>
                                        </volist>
                                    </empty>
                                </ul>
                            </div>
                            
                            <div style="clear:both;"></div>
                            <div class="East">
                                <h2 class="lv_htwo">East or hard</h2>
                                <ul class="Cook_ul">
                                    <empty name="seteasyhardinfo">
                                        <li><a href="javascript:;">无</a></li>
                                        <else/>
                                        <volist name="seteasyhardinfo" id="vo">
                                            <li><a href="__APP__/Recipe/mincategory/ctype/easyorhard/cid/<{$vo.id}>/type/<{$vo.name}>"><{$vo.name}></a></li>
                                        </volist>
                                    </empty>
                                </ul>
                            </div>
                            <div class="East">
                                <h2 class="lv_htwo">Total time</h2>
                                <ul class="Cook_ul">
                                    <empty name="settotaltimeinfo">
                                        <li><a href="javascript:;">无</a></li>
                                        <else/>
                                        <volist name="settotaltimeinfo" id="vo">
                                            <li><a href="__APP__/Recipe/mincategory/ctype/totaltime/cid/<{$vo.id}>/type/<{$vo.name}>"><{$vo.name}></a></li>
                                        </volist>
                                    </empty>
                                </ul>
                            </div>
                            <div class="East">
                                <h2 class="lv_htwo">Occasion:</h2>
                                <ul class="Cook_ul">
                                    <empty name="setoccasioninfo">
                                        <li><a href="javascript:;">无</a></li>
                                        <else/>
                                        <volist name="setoccasioninfo" id="vo">
                                            <li><a href="__APP__/Recipe/mincategory/ctype/occasion/cid/<{$vo.id}>/type/<{$vo.name}>"><{$vo.name}></a></li>
                                        </volist>
                                    </empty>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>

        <div class="right">
            <div class="right_what">
                <h2>What’s new</h2>
                <ul>
                    <volist name="newrecipe" id="vo">
                        <li>
                            <img src="__PUBLIC__/Content/User/<{$vo.userinfo.gravatar}>" />
                            <span class="rai"><{$vo.userinfo.username}></span>
                            <span class="add">add a recipe</span>
                            <span class="garlic"><a title="<{$vo.name}>" href="__APP__/Recipe/content/cid/<{$vo.recipecategoryid}>/id/<{$vo.id}>">
                                <gt name="vo.name|mb_strlen='utf-8'" value="8">
                                    <{$vo.name|mb_substr=0,8,"utf-8"}>...
                                    <else/>
                                    <{$vo.name}>
                                </gt>
                            </a></span>
                            <p class="time" style="margin-bottom: 5px;"><{$vo.created|date="m-d-Y",###}></p>
                        </li>
                    </volist>
                </ul>
            </div>

        </div>
</div>